# import microbit
#
# # 设置LED灯的颜色
# microbit.led.set_color(microbit.led.RED)
#
# # 读取按钮的状态
# if microbit.button_a.is_pressed():
#     print("按钮A被按下")
#
# # 读取传感器的值
# acceleration = microbit.accelerometer.get_x()
# print("加速度：", acceleration)
